#include "StdAfx.h"

#include "Context.h"
#include "State.h"

Context::Context(void)
{
}

Context::Context(State* state)
{
	this->_state= state;
}

Context::~Context(void)
{
	delete _state;
}

void Context::OprationInterface()
{
	_state->OperationInterface(this);
}

bool Context::ChangeState(State* state)
{
	this->_state= state;
	return true;
}

void Context::OperationChangState()
{
	_state->OperationChangeState(this);
}